/*
 * error.h
 *
 *  Created on: 07.11.2011
 *      Author: delgado
 */

#ifndef ERROR_H_
#define ERROR_H_
#include <string>
using std::string;

namespace neurignacio
{

enum ErrorCode {NO_ARGUMENTS=1,
				COMMAND_PARSER_EXCEPTION,
				MISSING_INPUT_FILE,
				IS_NOT_REGULAR_FILE,
				FILENAME_IS_EMPTY,
				CANNOT_OPEN_FILE,
				CANNOT_CREATE_FILE,
				FILE_FORMAT_ERROR,
				CHILDREN_MISSMATCH,
				FILE_EXISTS,
				SEGMENT_MISMATCH,
				TYPE_OF_DATA_UNKNOWN,
				AMPLIFIER_NOT_FOUND	};

void error(ErrorCode code, const string comment="");
void error(ErrorCode code, const int i);

}


#endif /* ERROR_H_ */
